/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package lineage.ui.customize;

import java.awt.Font;

import javax.swing.JMenuItem;

/**
 * 自定义JMenuItem.
 * 
 * @version 2014年2月24日下午8:17:55
 * @author jrwz
 */
public class L1CustomizeJMenuItem extends JMenuItem {
    private static final long serialVersionUID = 8202672584956508764L;

    public L1CustomizeJMenuItem() {
        super();
        font();
    }

    public L1CustomizeJMenuItem(String text) {
        super(text);
        font();
    }

    /**
     * 字体.
     */
    private void font() {
        L1Font.setFont(Font.BOLD, 14.0f);
        setFont(L1Font.getFont()); // 设置字体
    }
}
